package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 出库明细实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_outorderinfo")
public class OutOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 明细编号*/
    @TableId(value = "pk_outOrderInfoId", type = IdType.AUTO)
    private Integer outOrderInfoId;

    /** 出库数量*/
    @TableField("o_outNum")
    private Integer outNum;

    /** 商品ID*/
    @TableField("fk_productId")
    private Integer productId;

    /** 商品对象*/
    @TableField(exist = false)
    private Product product;

    /** 销售单ID*/
    @TableField("fk_outOrderId")
    private Integer outOrderId;

    /** 成交价*/
    @TableField("o_price")
    private BigDecimal price;

    /**销售单对象*/
    @TableField(exist = false)
    private OutOrder outOrder;
}
